package rcs34.android.Namedays.Activity;

import rcs34.android.Namedays.GApp;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

public class NamedaysList extends ListView{

  public NamedaysList(Context _context) {
    super(_context);
  }
  public NamedaysList(Context _context, AttributeSet _attrs) {
    super(_context, _attrs);
  }
  public NamedaysList(Context _context, AttributeSet _attrs, int _defStyle) {
    super(_context, _attrs, _defStyle);
  }
  
  @Override
  protected void handleDataChanged (){
    super.handleDataChanged();
    NamedaysAdapter adapter=(NamedaysAdapter)getAdapter();
    String filter=adapter.getSFilter();
    if(filter==null){
      setSelectionFromTop(GApp.position, 120);
    }
  }
}
